package com.lzh.shijicloudstack.model.dto.cookbookCategory;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author luzhiheng
 * @date 2025-02-08
 */
@Data
@ApiModel(value = "CookbookCategoryDetailDto", description = "菜谱分类Dto")
public class EditCookbookCategoryDetailDto {

    /**
     * 主键ID
     */
    @NotNull(message = "主键ID不能为空")
    @ApiModelProperty(value = "主键ID")
    private Long id;

    /**
     * 分类分类名称
     */
    @NotNull(message = "菜谱分类名称不能为空")
    @ApiModelProperty(value = "菜谱名称")
    private String name;

    /**
     * 父级ID
     */
    @ApiModelProperty(value = "父级ID")
    private Long parentId;

    /**
     * 子分类
     */
    @ApiModelProperty(value = "子分类")
    private List<EditCookbookCategoryDetailDto> children;

}
